package com.xmwzw.catpu.db;

import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
import com.xmwzw.catpu.bean.SoftBean;

/**
 * @author : wangzw
 * @date : 20-4-16下午3:43
 * @desc :
 */
@Table(database = AppDataBase.class)
public class SoftModel extends BaseModel {
    @PrimaryKey(autoincrement = true)
    public long ids;
    @Column
    public String id;
    @Column
    public String type_id;
    @Column
    public String type_name;
    @Column
    public String name;
    @Column
    public boolean isCollect;
    @Column
    public String down_url;
    @Column
    public String version;
    @Column
    public String icon_url;
    @Column
    public String downloadNo = "获取次数:0";

    public SoftModel(SoftBean softBean) {
        this.type_id = softBean.type_id;
        this.type_name = softBean.type_name;
        this.name = softBean.name;
        this.isCollect = false;
        this.id = softBean.id;
        this.down_url = softBean.down_url;
        this.version = softBean.version;
        this.icon_url = softBean.icon_url;
        this.downloadNo = softBean.downloadNo;
    }

    public SoftModel() {
    }
}
